//
//  UIImageView+PYMediaInfo.h
//  IHome
//
//  Created by Jim on 2019/4/14.
//  Copyright © 2019 com.zhujizheng. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN
@class PYMediaInfo;
@interface UIImageView (PYMediaInfo)

/**
 加载七牛图片
 
 @param mediaInfo 七牛图片模型
 
 */
- (void)py_setMediaInfo:(PYMediaInfo *)mediaInfo;

/**
 加载七牛图片
 
 @param mediaInfo 七牛图片模型
 @param progress 加载进度
 @param completion 加载完成的回调
 */
- (void)py_setMediaInfo:(PYMediaInfo *)mediaInfo
               progress:(nullable void (^)(double progress))progress
             completion:(nullable void (^)(UIImage * _Nonnull image))completion;

@end

NS_ASSUME_NONNULL_END
